package com.my.cd.strategy;

/**
 * 具体鸭子实现：绿头鸭，初始化具体的行为
 */
public class GreenHeadDuck extends Duck {

    public GreenHeadDuck() {
        mFlyBehavior = new GoodFlyBehavior();
        mQuackBehavior = new GaGaQuackBehavior();
    }

    @Override
    public void display() {
        System.out.println("**GreenHead**");
    }

}